//
//  NYHomeMoudle.m
//  NiuWaJiaoYu
//
//  Created by MinLison on 2017/12/4.
//  Copyright © 2017年 niuwaketang. All rights reserved.
//

#import "NYHomeMoudle.h"
#import "NYHomeViewController.h"
#import "MainServiceProtocol.h"
@implementation NYHomeMoudle
- (void)modSetUp:(BHContext *)context
{
    id <MainServiceProtocol> mainService = [[BeeHive shareInstance] createService:@protocol(MainServiceProtocol)];
    NYHomeViewController *vc = [[NYHomeViewController alloc] init];
    vc.hidesBottomBarWhenPushed = NO;
    vc.tabBarItem.selectedImage = [UIImage shou_ye_gao_liangRenderingMode:(UIImageRenderingModeAlwaysOriginal)];
    vc.tabBarItem.image = [UIImage shou_ye_chang_taiRenderingMode:(UIImageRenderingModeAlwaysOriginal)];
    vc.title = [NSString app_Home];
    BaseNavigationViewController *navController = [[BaseNavigationViewController alloc] initWithRootViewController:vc];
    [mainService addTabBarController:navController atIndex:NYTabControllerIndexHome];
}
@end
